import axios from "axios";

// axios.defaults.baseURL = process.env.baseURL || process.env.apiUrl || '';
// axios.defaults.headers.common['Authorization'] = AUTH_TOKEN;
// axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';
/**
 * ↑ 配置axios
 * 
 * 上下两种方式等效
 * 
 * ↓ 配置acios
 */
let config = {
  baseURL: 'https://www.baidu.com'
  // baseURL: process.env.baseURL || process.env.apiUrl || ""
  // timeout: 60 * 1000, // Timeout
  // withCredentials: true, // Check cross-site Access-Control
};

export default axios.create(config);
